//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("UnitLogIn.cpp", FormLogIn);
USEFORM("UnitStud.cpp", FormStud);
USEFORM("UnitProf.cpp", FormProf);
USEFORM("UnitRegister.cpp", FormRegister);
USEFORM("Course.cpp", CourseForm);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
   try
   {
       Application->Initialize();
       Application->CreateForm(__classid(TFormLogIn), &FormLogIn);
                 Application->CreateForm(__classid(TCourseForm), &CourseForm);
                 Application->CreateForm(__classid(TFormStud), &FormStud);
                 Application->CreateForm(__classid(TFormProf), &FormProf);
                 Application->CreateForm(__classid(TFormRegister), &FormRegister);
                 Application->Run();
   }
   catch (Exception &exception)
   {
       Application->ShowException(&exception);
   }
   catch (...)
   {
       try
       {
          throw Exception("");
       }
       catch (Exception &exception)
       {
          Application->ShowException(&exception);
       }
   }
   return 0;
}
//---------------------------------------------------------------------------
